####从视频中取出视频出来
ffmpeg -i src_wm.mp4 pics/%4d.jpg
##########
ffmpeg -i chb_src.mp4 -filter:v "crop=440:440:722:380" chb_crop.mp4
ffmpeg -i chb_crop.mp4 -ss 00:03 -to 02:50 -c:v libx264 -crf 30 chb.mp4
export PATH=/usr/local/cuda-11.2/bin:$PATH
export LD_LIBRARY_PATH=/usr/local/cuda-11.2/lib64
source activate /opt/data/private/code/ER-NeRF-main/process_data_evn
python data_utils/process.py data/chb/chb.mp4 --task 1
python data_utils/process.py data/chb/chb.mp4 --task 2
##第4步要依赖torch了
source activate /opt/data/private/pyenvs/ernerf_env/
python data_utils/process.py data/chb/chb.mp4 --task 4
#### 训练
# train (head and lpips finetune, run in sequence)
nohup python main.py data/chb/ --workspace trial_chb/ -O --iters 150000 > chb_train.log &
nohup python main.py data/chb/ --workspace trial_chb/ -O --iters 125000 --finetune_lips --patch_size 32 > chb_train_lips.log &
# train (torso)
# <head>.pth should be the latest checkpoint in trial_obama
nohup python main.py data/chb/ --workspace trial_chb_torso/ -O --torso --head_ckpt trial_chb/checkpoints/ngp_ep0040.pth --iters 200000 &

#### 预测
python main.py data/chb/ --workspace trial_chb_torso/ -O --torso --test --test_train --aud my_test_data/demo_cn/demo_cn.npy

##实验-wm#########################################################################################
ffmpeg -i wm_src.mp4 -filter:v "crop=450:450:732:325" wm_crop.mp4
ffmpeg -i wm_crop.mp4 -ss 00:12 -to 04:00 -c:v libx264 -crf 30 wm.mp4
export PATH=/usr/local/cuda-11.2/bin:$PATH
export LD_LIBRARY_PATH=/usr/local/cuda-11.2/lib64
/opt/data/private/code/ER-NeRF-main/process_data_evn/bin/python data_utils/process.py data/wm/wm.mp4 --task 1
/opt/data/private/code/ER-NeRF-main/process_data_evn/bin/python data_utils/process.py data/wm/wm.mp4 --task 2
/opt/data/private/pyenvs/ernerf_env/bin/python data_utils/process.py data/wm/wm.mp4 --task 3
# 8min
/opt/data/private/pyenvs/ernerf_env/bin/python data_utils/process.py data/wm/wm.mp4 --task 4
# 1.5min
/opt/data/private/pyenvs/ernerf_env/bin/python data_utils/process.py data/wm/wm.mp4 --task 5
# 7min
/opt/data/private/pyenvs/ernerf_env/bin/python data_utils/process.py data/wm/wm.mp4 --task 6
# 6min 脸部关键点
/opt/data/private/pyenvs/ernerf_env/bin/python data_utils/process.py data/wm/wm.mp4 --task 7
/opt/data/private/pyenvs/ernerf_env/bin/python data_utils/process.py data/wm/wm.mp4 --task 8
/opt/data/private/pyenvs/ernerf_env/bin/python data_utils/process.py data/wm/wm.mp4 --task 9
#### 训练
# train (head and lpips finetune, run in sequence)
nohup python main.py data/wm/ --workspace trial_wm/ -O --iters 200000 > wm_train.log &
nohup python main.py data/wm/ --workspace trial_wm/ -O --iters 125000 --finetune_lips --patch_size 32 > wm_train_lips.log &
# train (torso)
# <head>.pth should be the latest checkpoint in trial_obama
nohup python main.py data/wm/ --workspace trial_wm_torso/ -O --torso --head_ckpt trial_wm/checkpoints/****.pth --iters 200000 &